<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<% 
/**
 * @Class Name : EgovCertLogin.jsp
 * @Description : 인증서로그인
 * @Modification Information
 * @
 * @  수정일      수정자            수정내용
 * @ -------        --------    ---------------------------
 * @ 2009.08.13   한성곤          최초 생성
 *
 *  @author 공통컴포넌트개발팀 한성곤
 *  @since 2009.08.13
 *  @version 1.0 
 *  @see
 */
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/egovframework/cmm/utl/com.css" type="text/css">
<script type="text/javascript" language='javascript' src='${pageContext.request.contextPath}/utl/sec/certVar.do?type=login'></script>
<!-- 
<script type="text/javascript" language='javascript' src='${pageContext.request.contextPath}/resource/gpkisecureweb/install.js' charset="euc-kr"></script>
<script type="text/javascript" language='javascript' src='${pageContext.request.contextPath}/resource/gpkisecureweb/GPKIFunc.js' charset="euc-kr"></script>
<script type="text/javascript" language='javascript' src='${pageContext.request.contextPath}/resource/gpkisecureweb/object.js' charset="euc-kr"></script>
-->
<script type="text/javascript" language='javascript' src='${pageContext.request.contextPath}/js/egovframework/cmm/utl/sec/EgovCertInstall.js'></script>
<script type="text/javascript" language='javascript' src='${pageContext.request.contextPath}/js/egovframework/cmm/utl/sec/EgovCertGPKIFunc.js'></script>
<script type="text/javascript" language='javascript' src='${pageContext.request.contextPath}/js/egovframework/cmm/utl/sec/EgovCertObject.js'></script>

<script type="text/javascript">
function call_cert(formName) {

	if (document.GPKISecureWeb==null || document.GPKISecureWeb.object==null) {
		if (confirm('인증서로그인을 위한 보안프로그램이 설치되지 않았습니다.\n\n설치 후 다시 사용하실 수 있습니다.\n\n설치하시겠습니까?')) {
			document.location.href = '${pageContext.request.contextPath}/utl/sec/certInstall.do';
		}

	} else {
		Login(formName);
	}
}
</script>
<title>인증서 로그인</title>
<style type="text/css">    
<!--   
    .PageTitle	{  
		color: #000000; 
		text-align:left;
		font-family:"돋움";
		font-weight:bold;
		padding-left:45px;
	}
--> 
</style>
</head>
<body>

<noscript class="noScriptTitle">자바스크립트를 지원하지 않는 브라우저에서는 일부 기능을 사용하실 수 없습니다.</noscript>

<form name="theForm" method="post">
<table width="742" cellpadding="8" class="table-line">
<%@include file="EgovCertGpkisecureweb.jsp"%>
<%  
String challenge =((GPKIHttpServletResponse)gpkiresponse).getChallenge();
%>
<tbody>
<tr>
	<th class="title">인증서 로그인 테스트</th>
	<td height="67" class="lt_text">
		<input type="hidden" name="challenge" value="<%= challenge %>">
			<a href="javascript:call_cert(document.theForm);">인증서로그인</a>
	</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>